

#ifndef MESSAGEHANDLER_H
#define MESSAGEHANDLER_H


#include "connection.h"
#include <string>


namespace client_server {
    class MessageHandler {
	public:
		
		MessageHandler(Connection &conn);
		char getCommand();
		char* getParameters();
		static int readInt(char* &p);
		static std::string readString(char* &parameters);
		
	private:
		int readNUM_P(char* &p, Connection& conn);
		void readSTRING_P(char* &p, Connection& conn);
		char command;
		char* parameters;
	};
}
		 






#endif
